function [DensityTable] = Ddavid_get_feature_density_in_Kth_distance(SortedDistTable, K)

N = size(SortedDistTable, 1);
TrainingSize = size(SortedDistTable, 2);

AvgKthDist = Ddavid_get_average_Kth_distance(SortedDistTable, K);

DensityTable = zeros(N, 1);

for SizeCounter = 1:N
    DensityTable(SizeCounter, 1) = size(find(SortedDistTable(SizeCounter, :) <= AvgKthDist), 2);
end
